package com.itheima.exerciseTest.test01_09;

public class Test6 {
    public static void main(String[] args) {
        method(new InterTest6() {
            @Override
            public void show() {
                System.out.println("张帆真帅");
            }
        });
        method(new InterTest6Impl());
    }
    public static void method(InterTest6 it){
        it.show();
    }
}

interface InterTest6 {
    public abstract void show();
}

class InterTest6Impl implements InterTest6 {

    @Override
    public void show() {
        System.out.println("帅是真帅");
    }
}

